package Persistencia;


public class UsuarioSqlHelper {
    
    public static String autenticar(){
return "SELECT * FROM Usuarios where Cedula = ? and Contrasena = ?" ;
}
    public static String crear(){
return "  insert into Usuarios (Cedula,Contrasena,Rol) values(?,?,?)   " ;
}
    
    public static String modificar() {
        return "update Usuarios set Rol=?,Contrasena=? where Cedula=?";
    }

     public static String Buscar(String Cedula) {
        return "select * from Usuarios where Cedula = "+Cedula+"";
    }

    public static String eliminar() {
     return "delete from Usuarios where Cedula= ?";
 } 
        public static String getAllUsuario(){
return " SELECT * FROM usuarios " ;
}
    
}








